package com.xuecheng.api.course;

import com.xuecheng.framework.domain.course.CoursePic;
import com.xuecheng.framework.model.response.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

@Api(value = "课程图片接口",tags = {"课程图片查询接口,提供课程图片的管理,查询,删除接口"})
public interface CoursePicControllerApi {
    /**
     * 添加课程图片
     * @param courseId 课程id
     * @param pic 课程图片地址
     * @return 响应结果
     */
    @ApiOperation("添加课程图片")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "courseId",value = "课程id",required = true,paramType ="body" ),
            @ApiImplicitParam(name = "pic",value = "课程图片路径",required = true,paramType ="body" )
    })
    ResponseResult addCoursePic(String courseId,String pic);

    /**
     * 查询课程图片
     * @param courseId 课程id
     * @return 响应结果
     */
    @ApiOperation("查询课程图片")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "courseId",value = "课程id",required = true,paramType ="path" ),
    })
    CoursePic findCoursePic(String courseId);

    /**
     * 删除课程图片
     * @param courseId 课程id
     * @return 响应结果
     */
    @ApiOperation("删除课程图片")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "courseId",value = "课程id",required = true,paramType ="body" ),
    })
    ResponseResult deleteCoursePic(String courseId);
}
